package xc.com.course.service;

import com.baomidou.mybatisplus.extension.service.IService;
import xc.com.common.Result;
import xc.com.course.domain.Teachplan;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhuolizhong
 * @since 2021-06-03
 */
public interface TeachplanService extends IService<Teachplan> {
    /**
     * 添加课程计划
     * @param teachplan
     * @return
     */
       Result addTeachplan(Teachplan teachplan);

    /**
     * 根据curseId查询课程计划信息
     * @param courseId
     * @return
     */
    Teachplan[] findByCourseId(String courseId);
    /**
     * 根据课程id删除课程信息
     * @param ids
     * @return
     */
    Result deleteByIds(String[] ids);

    /**
     * 根据courseId删除全部课程计划
     * @param courseId
     * @return
     */
    Result deleteByCourseId(String courseId);

    /**
     * 根据courseId查询课程计划和视频信息
     * @param courseId
     * @return
     */
    Teachplan findAllTeachPlan(String courseId);
}
